<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // 小伙子送姑娘礼物
    // 不好意思
    // 找快递
    function Boy(){
        this.send = function(girl, msg){
            console.log(`你好，漂亮${girl.name}，这是我送你的${msg}`);
        }
    }

    function Girl(n){
        this.name = n;
    }

    function myProxy(girl, msg){

        this.message = [];

        this.send = function(){

            this.message.push({
                收货人: girl.name,
                content: msg,
                time: Date.now()
            });

            const b = new Boy()
            b.send(girl, msg);
        }
    }

    const g = new Girl("韩梅梅");
    const p = new myProxy(g, "999朵鲜花")
    p.send()

    console.log(p.message);


</script>
</html>